Index Notation in JavaScript